import request from '../utils/request'
const headers = {
  'Content-Type': 'application/json',
  Accept: 'application/json'
}

export function add(data) {
  return request({
    url: '/admin/banner/add',
    method: 'post',
    data,
    headers
  })
}
export function edit(data) {
  return request({
    url: '/admin/banner/update',
    method: 'post',
    data,
    headers
  })
}
export function del(data) {
  return request({
    url: '/admin/banner/del',
    method: 'post',
    data,
    headers
  })
}
export function getInviteImgApi(data) {
  return request({
    url: '/admin/config/get',
    method: 'get',
    data

  })
}
export function setInviteImgApi(data) {
  return request({
    url: '/admin/config/set',
    method: 'post',
    data,
    headers
  })
}
export function getshow(data) {
  return request({
    url: '/admin/config/set',
    method: 'post',
    data,
    headers
  })
}
export function setshow(data) {
  return request({
    url: '/admin/config/del',
    method: 'post',
    data,
    headers
  })
}
export default { add, edit, del }
